package com.基础00;

import java.util.ArrayList;

public class OutOfMemoryTest {

    public static void main(String[] args) {
        ArrayList<Object> list = new ArrayList<Object>();
        for (int i=0;;i++){
            System.out.println(i);
            list.add(i);
        }
    }

}
